package com.migo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.migo.dao.MgMarketingBannerDao;
import com.migo.entity.MgMarketingBannerEntity;
import com.migo.service.MgMarketingBannerService;



@Service("mgMarketingBannerService")
public class MgMarketingBannerServiceImpl implements MgMarketingBannerService {
	@Autowired
	private MgMarketingBannerDao mgMarketingBannerDao;
	
	@Override
	public MgMarketingBannerEntity queryObject(Integer id){
		return mgMarketingBannerDao.queryObject(id);
	}
	
	@Override
	public List<MgMarketingBannerEntity> queryList(Map<String, Object> map){
		return mgMarketingBannerDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return mgMarketingBannerDao.queryTotal(map);
	}
	
	@Override
	public void save(MgMarketingBannerEntity mgMarketingBanner){
		mgMarketingBannerDao.save(mgMarketingBanner);
	}
	
	@Override
	public void update(MgMarketingBannerEntity mgMarketingBanner){
		mgMarketingBannerDao.update(mgMarketingBanner);
	}
	
	@Override
	public void delete(Integer id){
		mgMarketingBannerDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		mgMarketingBannerDao.deleteBatch(ids);
	}
	
}
